package ch.justdoit.andriodrpncalc.model.command;

import ch.justdoit.andriodrpncalc.model.Model;

public class NotImplementedCommand extends BaseCommand {

	public NotImplementedCommand(Model _model, String commandName) {
		super(_model);
		mCommandName = commandName;
	}

	@Override
	public boolean doit() {
		mModel.setErrorMessage(mCommandName + " not implemented");
		return false;
	}

	@Override
	public boolean undo() {
		return false;
	}

	@Override
	public ICommand createNewInstance() {
		return new NotImplementedCommand(mModel, mCommandName);
	}

}
